package com.itheima.mapper;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmpMapper {

    public Integer queryAllCount(@Param("pageQuery") PageQuery pageQuery);

    public List<Emp> queryAllByCondition(@Param("start") Integer start, @Param("pageSize") Integer pageSize, @Param("pageQuery") PageQuery pageQuery);

    public void addEmp(@Param("emp") Emp emp);

    public Emp queryEmpById(@Param("id") Integer id);

    public void deleteByIds(@Param("ids") List<Integer> ids);

    public void updateEmpById(@Param("emp") Emp emp);

}
